<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Article PreAdd</title>
        <%include("../inc/editCss.html"){};%>

	</head>
	<body class="no-skin">
		<div class="container-fluid">
			<div class="row">
			  <div class="breadcrumbs">
				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i><a href="../index.jspx" target="_top">首页</a></li>
					<li><a href="list.jspx">文章</a></li>
					<li class="active">新增</li>
				</ul>
				  <!-- /.breadcrumb -->
			  </div>
			  <!-- /.breadcrumbs -->
			</div>
			<!-- /.row -->
			<div class="row">
				<div class="page-content">
					<div class="page-header">
						<h1>文章添加</h1>
					</div>
					<div class="row">
						<div class="col-xd-12">
						    <form action="add.jspx" method="post" class="form-horizontal" role="form" id="form-data">
						    	<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 标题  </label>
									<div class="col-sm-10">
										<input type="text" id="title" name="title" placeholder="标题" class="col-sm-8" />
									</div>
								</div>
								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 次标题  </label>
									<div class="col-sm-10">
										<input type="text" id="subheading" name="subheading" placeholder="次标题" class="col-sm-6" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 所在栏目</label>
									<div class="col-sm-2">
										<select name="channelId" id="channelId" data-placeholder="选择栏目">
					    				</select>
									</div>
									
									<label class="col-sm-2 control-label no-padding-right"> 是否置顶 </label>
									<div class="col-sm-2">
										<label class="radio-inline">
											<input type="radio" name="istop" id="istop_0" value="0" checked>否
										</label>
										<label class="radio-inline">
											<input type="radio" name="istop" id="istop_1" value="1">是
										</label>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 文章链接类型 </label>
									<div class="col-sm-10">
										<label class="radio-inline">
											<input type="radio" name="linktype" id="linktype_0" value="0" checked onclick="root.manage.article.edit.openLinkurl(0)">内部相对链接
										</label>
										<label class="radio-inline">
											<input type="radio" name="linktype" id="linktype_1" value="1" onclick="root.manage.article.edit.openLinkurl(1)">URL外链链接
										</label>
										<div id="linkurl-div">
										<input id="linkurl" name="linkurl" type="text" class="form-control" placeholder="URL外链链接地址">
                                        </div>
                                        <div id="upload2">

                                        </div>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 作者 </label>
									<div class="col-sm-2">
										<input type="text" name="author">
									</div>
									
									<label class="col-sm-2 control-label no-padding-right"> 来源 </label>
									<div class="col-sm-2">
										<input type="text" name="copyfromname">
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 摘要 </label>
									<div class="col-sm-9">
										<textarea id="summary_container" name="summary"></textarea>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 内容 </label>
									<div class="col-sm-9">
										<textarea id="content_container" name="content"></textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">添加时间</label>
									<div class="col-sm-3">
										<input type="text" name="addtime" value="${date(),"yyyy-MM-dd HH:mm:ss"}">
									</div>
								</div>
								<div style="display:none">
									<input type="hidden" id="recycle" name="recycle" value="0">
									<input type="hidden" id="hits" name="hits" value="1">
									<input type="hidden" id="inputer" name="inputer" value="">
									<input type="hidden" id="showcommentlink" name="showcommentlink" value="0">
								</div>
								<div class="clearfix form-actions">
									<div class="col-sm-offset-2 col-sm-4">
										<button type="reset" class="btn">
											<i class="ace-icon fa fa-undo bigger-110"></i>
											重置
										</button>
										&nbsp;&nbsp;
										<button type="submit" class="btn btn-info">
											<i class="ace-icon fa fa-check bigger-110"></i>
											提交
										</button>
									</div>
								</div>
						    </form>
					    </div>
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<%include("../inc/editJs.html"){};%>

		<script>
			$(document).ready(function(){
				root.manage.article.edit.init({ctx:'${request.contextPath}'});
			});
		</script>
	</body>
</html>